package com.wangshouyu.mp.qrcode;

import java.io.Serializable;
import java.util.Objects;

/**
 * @author 王守钰
 * @date 2021年01月23日 13:31
 * @description 二维码详细信息
 */
public class ActionInfo implements Serializable {

    /**
     * 场景
     */
    private Scene scene;

    public Scene getScene() {
        return scene;
    }

    public void setScene(Scene scene) {
        this.scene = scene;
    }

    @Override
    public boolean equals(Object o) {
        if (this == o) return true;
        if (o == null || getClass() != o.getClass()) return false;
        ActionInfo that = (ActionInfo) o;
        return Objects.equals(scene, that.scene);
    }

    @Override
    public int hashCode() {
        return Objects.hash(scene);
    }

    @Override
    public String toString() {
        return "ActionInfo{" +
                "scene=" + scene +
                '}';
    }

    public ActionInfo(Scene scene) {
        this.scene = scene;
    }

    public ActionInfo() {
    }
}
